package com.atguigu.gulimall.ware.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("gulimall-product")
public interface ProductFeignService {

    /**
     * product/skuinfo/info/{skuId}--------->gulimall-product--->@FeignClient("gulimall-product")
     * api/product/skuinfo/info/{skuId}----->gulimall-gateway--->@FeignClient("gulimall-gateway")
     * 这两种写法都可以
     */

    @RequestMapping("product/skuinfo/info/{skuId}")
    public R info(@PathVariable("skuId") Long skuId);

}
